package com.ctshk.rpc.order.air.req.app;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class AppContactReq implements Serializable {

    @NotBlank(message = "联系人姓氏不能为空")
    @ApiModelProperty(value = "联系人姓", required = true)
    private String surname;

    @NotBlank(message = "联系人名不能为空")
    @ApiModelProperty(value = "联系人名", required = true)
    private String name;

    @NotBlank(message = "联系人手机不能为空")
    @ApiModelProperty(value = "联系人手机", required = true)
    private String contactMobile;

    @NotNull(message = "联系人手机区号id不能为空")
    @ApiModelProperty(value = "联系人手机区号id", required = true)
    private Long contactMobileAreaCodeId;

    @NotBlank(message = "联系人手机区号不能为空")
    @ApiModelProperty(value = "联系人手机区号", required = true)
    private String contactMobileAreaCode;

    @NotBlank(message = "联系人邮箱不能为空")
    @ApiModelProperty(value = "联系人邮箱", required = true)
    private String contactEmail;

    @NotNull(message = "联系人称谓不能为空")
    @ApiModelProperty(value = "称谓(1:先生;2:女士;3:小姐;4:男童;5:女童)", required = true)
    private Integer appellation;
}
